package de.szut.sudoku.gui.menu;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;

/**
 * Frame that shows information related to the program
 * 
 * @author dqi12huisinga
 * 
 */
@SuppressWarnings("serial")
public class InformationFrame extends JFrame {

	private JPanel contentPane;
	private JLabel lblInfo;

	/**
	 * Generates the frame when instantiated
	 */
	public InformationFrame() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setTitle("Info");
		setResizable(false);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));

		lblInfo = new JLabel("<html>" + "<b> Program Information: </b> <br>"
				+ "Software for the game 'Sudoku' <br>"
				+ "Developed by Marc Huisinga <br> <br>"
				+ "<b> Credits for translation: </b> <br>"
				+ "Hammer for the Italian translation <br>"
				+ "DeadSignal for the French translation <br>"
				+ "Maciek for the Polish translation");
		lblInfo.setFont(new Font("Tahoma", Font.PLAIN, 11));
		contentPane.add(lblInfo);
		setVisible(true);
		pack();
	}

}
